home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr35
/
wui_25a.zip
/
WUI.PPS
< prev
Wrap
Text File
|
1993-05-14
|
18KB
|
393 lines
;*****************************************************************************
;* *
;* WUI.PPE v2.50a *
;* PCBOARD 15.0 WRITE USER INFORMATION PROGRAM *
;* *
;* Written by Larry Steele and Jerry Claxton *
;* Written in PCBoard Programming Language *
;* Compiled on 05-14-1993 *
;* *
;* "The Shoppe Bulletin Board Systems" *
;* Node 1 - 708-888-0725 - [16.8 DS] - 80486/50 *
;* Node 2 - 708-888-1162 - [16.8 DS] - 80486/40 *
;* Node 3 - 708-888-0078 - [16.8 DS] - 80486/40 *
;* Node 4 - 708-888-4175 - [16.8 DS] - 80486/40 *
;* Node 5 - PRIVATE LINE - [16.8 DS] - 80486/66 *
;*****************************************************************************
;*****************************************************************************
;* Define variable types *
;*****************************************************************************
BOOLEAN Save_User_Record
STRING Write_User_Information, Command_Line
STRING User_PassWord_One, User_PassWord_Two
STRING Message_Clear
STRING Scroll_Screen
STRING Long_Header
STRING Full_Screen
STRING Editor_WorkSpace
STRING Expert_Mode
;*****************************************************************************
;* Load the current users information *
;*****************************************************************************
GETUSER
GOSUB GRAB_INFO
;*****************************************************************************
;* Check the command line for any Parameters *
;*****************************************************************************
GETTOKEN Command_Line
IF (STRIP(Command_Line, " ") = "A") GOTO PASSWORD
IF (STRIP(Command_Line, " ") = "B") GOTO CITY_STATE
IF (STRIP(Command_Line, " ") = "C") GOTO DATA_PHONE
IF (STRIP(Command_Line, " ") = "D") GOTO HOME_PHONE
IF (STRIP(Command_Line, " ") = "E") GOTO CPU_BRAND
IF (STRIP(Command_Line, " ") = "F") GOTO MSG_CLEAR
IF (STRIP(Command_Line, " ") = "G") GOTO MSG_SCROLL
IF (STRIP(Command_Line, " ") = "H") GOTO MSG_HEADER
IF (STRIP(Command_Line, " ") = "I") GOTO MSG_FULLSCREEN
IF (STRIP(Command_Line, " ") = "J") GOTO MSG_COLUMNS
IF (STRIP(Command_Line, " ") = "K" & PSA(3)) GOTO PSA_STREET_NUMBER1
IF (STRIP(Command_Line, " ") = "L" & PSA(3)) GOTO PSA_STREET_NUMBER2
IF (STRIP(Command_Line, " ") = "M" & PSA(3)) GOTO PSA_CITY
IF (STRIP(Command_Line, " ") = "N" & PSA(3)) GOTO PSA_PROVINCE_STATE
IF (STRIP(Command_Line, " ") = "O" & PSA(3)) GOTO PSA_ZIPCODE
IF (STRIP(Command_Line, " ") = "P" & PSA(3)) GOTO PSA_COUNTRY
IF (STRIP(Command_Line, " ") = "X" & PSA(1)) GOTO PSA_ALIAS_NAME
IF (STRIP(Command_Line, " ") = "V") GOTO VIEW_USER_STATS
IF (STRIP(Command_Line, " ") <> "") Command_Line = ""
;*****************************************************************************
;* Start of Main PPE program *
;*****************************************************************************
:BEGIN_MAIN
CLS
Write_User_Information = ""
PRINTLN "@X7F┌─────────────────────────────────────────────────────────────────────────────@X70┐@X07"
PRINTLN "@X7F│ @X70@SYSDATE:8@ @X7BW R I T E U S E R I N F O R M A T I O N @X70@SYSTIME:5@:04 │@X07"
PRINTLN "@X7F└@X70─────────────────────────────────────────────────────────────────────────────┘@X07"
PRINTLN "@X70┌─────────────────────────────────────────────────────────────────────────────@X7F┐@X07"
PRINTLN "@X70│ @X71(@X7EA@X71) Change your Password (@X7EF@X71) Clear the screen between each message @X7F│@X07"
PRINTLN "@X70│ @X71(@X7EB@X71) Change City and State (@X7EG@X71) Scroll multi-screen messages @X7F│@X07"
PRINTLN "@X70│ @X71(@X7EC@X71) Business or data phone (@X7EH@X71) Use long header when reading messages @X7F│@X07"
PRINTLN "@X70│ @X71(@X7ED@X71) Home or voice phone (@X7EI@X71) Full Screen Editor Default @X7F│@X07"
PRINTLN "@X70│ @X71(@X7EE@X71) Brand of CPU you are using (@X7EJ@X71) Set editor workspace to 79 columns @X7F│@X07"
IF (PSA(1) | PSA(3)) THEN
PRINTLN "@X70│ @X7F│@X07"
PRINTLN "@X70│ @X71(@X7EK@X71) Street Address and Number (@X7EX@X71) Create or change your ALIAS name @X7F│@X07"
PRINTLN "@X70│ @X71(@X7EL@X71) Suite or Apartment Number @X7F│@X07"
PRINTLN "@X70│ @X71(@X7EM@X71) City, Town or Village @X08┌───────────────────────────────────────┐@X70 @X7F│@X07"
PRINTLN "@X70│ @X71(@X7EN@X71) Province or State @X08│@X0F@USER:38C@@POS:77@@X08│@X70 @X7F│@X07"
PRINTLN "@X70│ @X71(@X7EO@X71) Postal Zip Code @X08│ @X0E[@X0FExpire: @EXPDATE:8@@X0E] [@X0FDays Left: @EXPDAYS:3R@@X0E@POS:75@]@POS:77@@X08│@X70 @X7F│@X07"
PRINTLN "@X70│ @X71(@X7EP@X71) Country or Region @X08└───────────────────────────────────────┘@X70 @X7F│@X07"
PRINTLN "@X70└@X7F─────────────────────────────────────────────────────────────────────────────┘@X07"
INPUTSTR "(@X0FV@X0E)iew, Write User Information Command", Write_User_Information, 0Eh, 1, MASK_ALPHA(), FIELDLEN + GUIDE + UPCASE + LFBEFORE + ERASELINE
ELSE
PRINTLN "@X70└@X7F─────────────────────────────────────────────────────────────────────────────┘@X07"
INPUTSTR "(@X0FV@X0E)iew, Write User Information Command", Write_User_Information, 0Eh, 1, "abcdefghijqvABCDEFGHIJQV", FIELDLEN + GUIDE + UPCASE + LFBEFORE + ERASELINE
END IF
IF (Write_User_Information = "A") GOSUB PASSWORD
IF (Write_User_Information = "B") GOSUB CITY_STATE
IF (Write_User_Information = "C") GOSUB DATA_PHONE
IF (Write_User_Information = "D") GOSUB HOME_PHONE
IF (Write_User_Information = "E") GOSUB CPU_BRAND
IF (Write_User_Information = "F") GOSUB MSG_CLEAR
IF (Write_User_Information = "G") GOSUB MSG_SCROLL
IF (Write_User_Information = "H") GOSUB MSG_HEADER
IF (Write_User_Information = "I") GOSUB MSG_FULLSCREEN
IF (Write_User_Information = "J") GOSUB MSG_COLUMNS
IF (Write_User_Information = "K" & PSA(3)) GOSUB PSA_STREET_NUMBER1
IF (Write_User_Information = "L" & PSA(3)) GOSUB PSA_STREET_NUMBER2
IF (Write_User_Information = "M" & PSA(3)) GOSUB PSA_CITY
IF (Write_User_Information = "N" & PSA(3)) GOSUB PSA_PROVINCE_STATE
IF (Write_User_Information = "O" & PSA(3)) GOSUB PSA_ZIPCODE
IF (Write_User_Information = "P" & PSA(3)) GOSUB PSA_COUNTRY
IF (Write_User_Information = "X" & PSA(1)) GOSUB PSA_ALIAS_NAME
IF (Write_User_Information = "V") GOSUB VIEW_USER_STATS
IF (Write_User_Information = "Q") GOTO END_PROGRAM
IF (Write_User_Information = "") GOTO END_PROGRAM
GOTO BEGIN_MAIN
;*****************************************************************************
;* Start of PPE GOTO'S AND GOSUB'S *
;*****************************************************************************
:PASSWORD
IF (EXIST(PPEPATH() + "WUI_A")) DISPFILE PPEPATH() + "WUI_A", LANG + SEC + GRAPH
PROMPTSTR 152, User_PassWord_One, 13, MASK_PWD(), FIELDLEN + GUIDE + UPCASE + LFBEFORE + ECHODOTS + LFAFTER
IF (User_PassWord_One = "") RETURN
PROMPTSTR 111, User_PassWord_Two, 13, MASK_PWD(), FIELDLEN + GUIDE + UPCASE + LFBEFORE + ECHODOTS
IF (User_PassWord_One <> User_PassWord_Two) THEN
PRINTLN
DISPTEXT 110, LFBEFORE + BELL
DELAY (30)
PRINTLN
ELSE
Save_User_Record = TRUE
U_PWD = User_PassWord_One
END IF
User_PassWord_One = ""
User_PassWord_Two = ""
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:CITY_STATE
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_B")) DISPFILE PPEPATH() + "WUI_B", LANG + SEC + GRAPH
PROMPTSTR 265, U_CITY, 24, MASK_ASCII(), FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:DATA_PHONE
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_C")) DISPFILE PPEPATH() + "WUI_C", LANG + SEC + GRAPH
PROMPTSTR 113, U_BDPHONE, 13, MASK_NUM() + "-", FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:HOME_PHONE
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_D")) DISPFILE PPEPATH() + "WUI_D", LANG + SEC + GRAPH
PROMPTSTR 114, U_HVPHONE, 13, MASK_NUM() + "-", FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:CPU_BRAND
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_E")) DISPFILE PPEPATH() + "WUI_E", LANG + SEC + GRAPH
PROMPTSTR 2, U_CMNT1, 30, MASK_ASCII(), FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:MSG_CLEAR
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_F")) DISPFILE PPEPATH() + "WUI_F", LANG + SEC + GRAPH
PROMPTSTR 556, Message_Clear, 1, "YN", FIELDLEN + GUIDE + UPCASE + LFBEFORE + YESNO
IF (Message_Clear = NOCHAR()) U_CLS = 0
IF (Message_Clear = YESCHAR()) U_CLS = 1
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:MSG_SCROLL
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_G")) DISPFILE PPEPATH() + "WUI_G", LANG + SEC + GRAPH
PROMPTSTR 627, Scroll_Screen, 1, "YN", FIELDLEN + GUIDE + UPCASE + LFBEFORE + YESNO
IF (Scroll_Screen = NOCHAR()) U_SCROLL = 0
IF (Scroll_Screen = YESCHAR()) U_SCROLL = 1
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:MSG_HEADER
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_H")) DISPFILE PPEPATH() + "WUI_H", LANG + SEC + GRAPH
PROMPTSTR 628, Long_Header, 1, "YN", FIELDLEN + GUIDE + UPCASE + LFBEFORE + YESNO
IF (Long_Header = NOCHAR()) U_LONGHDR = 0
IF (Long_Header = YESCHAR()) U_LONGHDR = 1
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:MSG_FULLSCREEN
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_I")) DISPFILE PPEPATH() + "WUI_I", LANG + SEC + GRAPH
PROMPTSTR 583, Full_Screen, 1, "YNA", FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Full_Screen = NOCHAR()) THEN
U_FSEP = 0
U_FSE = 0
ELSEIF (Full_Screen = YESCHAR())
U_FSEP = 0
U_FSE = 1
ELSEIF (Full_Screen = "A")
U_FSEP = 1
U_FSE = 0
END IF
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:MSG_COLUMNS
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_J")) DISPFILE PPEPATH() + "WUI_J", LANG + SEC + GRAPH
PROMPTSTR 637, Editor_WorkSpace, 1, "YN", FIELDLEN + GUIDE + UPCASE + LFBEFORE + YESNO
IF (Editor_WorkSpace = NOCHAR()) U_DEF79 = 0
IF (Editor_WorkSpace = YESCHAR()) U_DEF79 = 1
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:PSA_STREET_NUMBER1
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_K")) DISPFILE PPEPATH() + "WUI_K", LANG + SEC + GRAPH
INPUTSTR "Street Address and Number", U_ADDR(0), 0Eh, 50, MASK_ASCII(), FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:PSA_STREET_NUMBER2
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_L")) DISPFILE PPEPATH() + "WUI_L", LANG + SEC + GRAPH
INPUTSTR "Suite or Apartment Number", U_ADDR(1), 0Eh, 50, MASK_ASCII(), FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:PSA_CITY
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_M")) DISPFILE PPEPATH() + "WUI_M", LANG + SEC + GRAPH
INPUTSTR "City, Town or Village", U_ADDR(2), 0Eh, 25, MASK_ASCII(), FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:PSA_PROVINCE_STATE
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_N")) DISPFILE PPEPATH() + "WUI_N", LANG + SEC + GRAPH
INPUTSTR "Province or State", U_ADDR(3), 0Eh, 10, MASK_ASCII(), FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:PSA_ZIPCODE
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_O")) DISPFILE PPEPATH() + "WUI_O", LANG + SEC + GRAPH
INPUTSTR "Postal/Zip Code", U_ADDR(4), 0Eh, 10, MASK_NUM() + "-", FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:PSA_COUNTRY
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "WUI_P")) DISPFILE PPEPATH() + "WUI_P", LANG + SEC + GRAPH
INPUTSTR "Country or Region", U_ADDR(5), 0Eh, 15, MASK_ASCII(), FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:PSA_ALIAS_NAME
IF (READLINE(PCBDAT(), 259) = "0" & (U_ALIAS <> "")) THEN
PRINTLN
PRINTLN "@X0CSorry, @FIRST@, You have already chosen an ALIAS name."
PRINTLN
PRINTLN "@X0EThe SysOp has disabled the ability to change your alias name. You may leave a"
PRINTLN "@X0Ecomment to the System Operator to request a new alias name."
PRINTLN
WAIT
ELSE
Save_User_Record = TRUE
IF (EXIST(PPEPATH() + "ALIAS")) DISPFILE PPEPATH() + "ALIAS", LANG + SEC + GRAPH
PROMPTSTR 690, U_ALIAS, 25, MASK_ASCII(), FIELDLEN + GUIDE + UPCASE + LFBEFORE
IF (U_RECNUM(U_ALIAS) <> -1) THEN
NEWLINES 2
DISPTEXT 256, LFAFTER + BELL + NEWLINE
Save_User_Record = 0
WAIT
END IF
END IF
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:VIEW_USER_STATS
CLS
PRINTLN "@X70┌─────────────────────────────────────────────────────────────────────────────@X7F┐@X07"
PRINTLN "@X70│ @X74Security Level @X70: @X71" + STRING(U_SEC) + "@POS:51@@X74Expert Mode @X70: @X71" + Expert_Mode + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Full Name @X70: @X71" + U_NAME() + "@POS:51@@X74Protocol @X70: @X71" + U_TRANS + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74City and State @X70: @X71" + U_CITY + "@POS:51@@X74Page Length @X70: @X71" + STRING(U_PAGELEN) + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Business Phone @X70: @X71" + U_BDPHONE + "@POS:51@@X74Reg Ex Date @X70: @X71" + STRING(U_EXPDATE) + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Home Phone @X70: @X71" + U_HVPHONE + "@POS:51@@X74Days Left @X70: @X71" + "@EXPDAYS:3R@" + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Password @X70: @X71" + U_PWD + "@POS:51@@X74Message Clear @X70: @X71" + Message_Clear + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74@POS:51@@X74Full Scrn Editor @X70: @X71" + Full_Screen + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Street Address @X70: @X71" + RTRIM(U_ADDR(0), " ") + "@POS:51@@X7479-Column Editor @X70: @X71" + Editor_WorkSpace + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Suite or Apartment # @X70: @X71" + RTRIM(U_ADDR(1), " ") + "@POS:51@@X74Scroll Long Msgs @X70: @X71" + Scroll_Screen + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74City/Town or Village @X70: @X71" + RTRIM(U_ADDR(2), " ") + "@POS:51@@X74Long Headers @X70: @X71" + Long_Header + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Province or State @X70: @X71" + RTRIM(U_ADDR(3), " ") + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Postal/Zip Code @X70: @X71" + RTRIM(U_ADDR(4), " ") + "@POS:51@@X74Last Date on @X70: @X71" + STRING(U_LDATE()) + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Country or Region @X70: @X71" + RTRIM(U_ADDR(5), " ") + "@POS:51@@X74Last Time on @X70: @X71" + STRING(U_LTIME()) + "@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74@POS:51@Online Today @X70 : @X71" + STRING(U_TIMEON()) + " min.@POS:79@@X7F│@X07"
PRINTLN "@X70│ @X74Current ALIAS Name @X70: @X71" + U_ALIAS + "@POS:79@@X7F│@X07"
PRINTLN "@X70└@X7F─────────────────────────────────────────────────────────────────────────────┘@X07"
PRINTLN
WAIT
IF (Command_Line = "") RETURN
GOTO END_PROGRAM
:GRAB_INFO
IF (U_EXPERT = 0) Expert_Mode = "OFF"
IF (U_EXPERT = 1) Expert_Mode = "ON "
IF (U_CLS = 0) Message_Clear = NOCHAR()
IF (U_CLS = 1) Message_Clear = YESCHAR()
IF ((U_FSEP = 0) & (U_FSE = 0)) Full_Screen = NOCHAR()
IF ((U_FSEP = 0) & (U_FSE = 1)) Full_Screen = YESCHAR()
IF ((U_FSEP = 1) & (U_FSE = 0)) Full_Screen = "A"
IF (U_DEF79 = 0) Editor_WorkSpace = NOCHAR()
IF (U_DEF79 = 1) Editor_WorkSpace = YESCHAR()
IF (U_SCROLL = 0) Scroll_Screen = NOCHAR()
IF (U_SCROLL = 1) Scroll_Screen = YESCHAR()
IF (U_LONGHDR = 0) Long_Header = NOCHAR()
IF (U_LONGHDR = 1) Long_Header = YESCHAR()
RETURN
:END_PROGRAM
IF (Save_User_Record = TRUE) THEN
IF (Command_Line <> "") PRINTLN
DISPTEXT 273, LFAFTER + LFBEFORE + BELL
PUTUSER
END IF
END